﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;

namespace Intelsi.WB.REPORTES
{
    public partial class frmReporteEquipos : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            rvEq.ShowPageNavigationControls = false;
            if (!Page.IsPostBack)
            {
                var idCategoria = Request.QueryString["IdCategoria"];
                if (idCategoria != null)
                {
                    var param = new ReportParameter("IdCategoria", idCategoria.ToString());
                    rvEq.ServerReport.SetParameters(param);
                    rvEq.ServerReport.Refresh();
                }
            }
            else
            {
                var param = rvEq.ServerReport.GetParameters();
            }
        }
    }
}